package com.cy.personer.biz;

import com.cy.personer.bean.FirstMenu;
import com.cy.personer.bean.Role;
import com.cy.personer.bean.SecondMenu;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface PowerBiz {
    public List<Role> querys();  //查询角色
    List<FirstMenu>firstList();  //查询出所有一级菜单
    List<SecondMenu>secondList(); //查询出所有二级菜单
    List<SecondMenu>queryList(int roleId);  //查询出所有二级菜单的ID

    /**
     * 增加菜单
     * @author whl
     */
    boolean add(int roleId,Integer[]secondMenuId);

    PageInfo<Role> getRoles(Integer pageNum);

}
